const mongoose = require('mongoose')

const { Schema, model } = mongoose

//homeText模型
const homeTextSchema = new Schema({
    __v: {
        type: Number,
        select: false,
    },
    name: { //文字
        type: String,
        required: true,
    },
    color: { //选项背景色
        type: String,
        default: 'rgb(255,255,255)',
    },
    state: { //显示状态
        type: String,
        default: '0'
    }
}, {timestamps: true})

module.exports = model('HomeText', homeTextSchema)